import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import show from '@dfeidao/atom-web/ui/show';
import p001 from './p001';
import p003 from './p003';

export default async function a001(fd: IFeidaoAiBrowserComponent) {
	// todo

	// 显示当前弹窗
	const div = fd.data.node.querySelector<HTMLDivElement>('[data-id="dis"]');
	set_node_cls(div, 'display-n', false);
	show(fd.data.node);
	const res = await nodejs<{ res: [], con: number }>('meeting-management/zj-000006/s001', { pn: 1 });
	render(fd, res.res, p001, 'p001', 'inner');
	render(fd, res.con, p003, 'p003', 'inner');

}
